@import url("../../font/iconfont.css");
@import "./index.scss";

header {
    height: 155px;
    background: url("../../images/top_banner.png") center;
    background-size: cover;
    position: relative;
}
.header-top-box {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 3;
    display: flex;
    font-size: 0;
    width: 100%;
    padding: 10px 24px;
    background: rgba($color: #000000, $alpha: 0.4);
    background: -webkit-linear-gradient(top, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0));
    display: flex;
    justify-content: space-between;
    align-items: center;
    a {
        display: inline-block;
        font-size: 14px;
        color: white;
        font-weight: 500;
        margin-right: 12px;
        height: 36px;
        line-height: 36px;
        i {
            margin-right: 3px;
            font-size: 18px;
            &.bili-icon_dingdao_xiazaiapp {
                margin-right: 0;
            }
        }
    }
    nav {
        height: 36px;
        flex: 0 0 auto;
    }
    .search-box {
        height: 36px;
        margin: 0 10px;
        display: flex;
        position: relative;
        flex: 1 1 auto;
        a {
            position: absolute;
            top: 0;
            right: 0px;
        }
        input {
            padding: 0 38px 0 10px;
            width: 100%;
            border: none;
            border-radius: 3px;
        }
        @media screen and (min-width: 980px) {
            max-width: 500px;
            min-width: 232px;
            a {
                color: #525252;
                background: #e7e7e7;
                width: 48px;
                height: 36px;
                line-height: 34px;
                text-align: center;
                margin: 0;
                border-top-right-radius: 3px;
                border-bottom-right-radius: 3px;
                &:hover {
                    color: #00a1d6;
                }
            }
        }
        @media screen and (max-width: 980px) {
            input {
                display: none;
            }
            a {
                color: white;
                margin: 0 -3px 2px 0;
            }
        }
    }
    .register-box {
        flex: 0 0 auto;
        height: 36px;
        display: flex;
        align-items: center;
        img {
            width: 32px;
            height: 32px;
            border-radius: 50%;
            margin-right: 5px;
            cursor: pointer;
        }
        a {
            margin-right: 12px;
        }
        .contribution {
            background: #fb7299;
            width: 100px;
            text-align: center;
            border-radius: 3px;
        }
    }
}
.logo-box {
    font-size: 0;
    width: 1000px;
    margin: 0 auto;
    height: 100%;
    position: relative;
    h1 {
        width: 162px;
        height: 78px;
        position: absolute;
        bottom: 10px;
        left: 0;
    }
    a {
        display: block;
        width: 100%;
        height: 100%;
    }
    img {
        width: 100%;
        height: 100%;
    }
}
@keyframes showDetail {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}
.hover-detail {
    position: relative;
    &:hover {
        .detail {
            display: block;
            animation: showDetail 0.5s;
        }
    }
    .detail {
        display: none;
        position: absolute;
        background: white;
        .arrow {
            position: absolute;
            z-index: 3;
            border: 1px solid black;
            border: 7px solid transparent;
            border-bottom: 7px solid white;
        }
        .content {
            background: white;
            box-shadow: 0 1px 4px rgba($color: #000000, $alpha: 0.3);
            border-radius: 4px;
        }
    }
    &.game-center {
        .arrow {
            left: 17px;
            top: -4px;
        }
        .content {
            position: absolute;
            top: 10px;
            right: -360px;
            display: flex;
            height: 256px;
        }
        .left {
            &-top {
                width: 240px;
                height: 128px;
                margin: 12px;
                background: url("../../images/game_banner.jpg") center;
                background-size: cover;
                border: 1px solid;
                img {
                    width: 100%;
                    height: 100%;
                    border-radius: 6px;
                }
            }
            ul {
                width: 100%;
                display: flex;
                justify-content: space-around;
                img {
                    width: 64px;
                    height: 64px;
                    border-radius: 14px;
                }
                li {
                    display: flex;
                    flex-direction: column;
                    justify-content: center;
                    align-items: center;
                    color: black;
                }
            }
        }
        .right {
            margin: 12px;
            margin-left: 0;
            background: url("../../images/game_line.png");
            background-repeat: no-repeat;
            width: 150px;
            position: relative;
            ul {
                position: absolute;
                top: 30px;
                left: 6px;
                color: black;
                width: 100%;
                li {
                    height: 28px;
                    line-height: 28px;
                    font-size: 12px;
                    width: 100%;
                    padding-left: 28px;
                    &:hover {
                        background: #e5e9ef;
                        color: #00a1d6;
                    }
                }
            }
        }
        .game-img {
            display: none;
            position: absolute;
            top: 36px;
            right: -198px;
        }
    }
    .register-center {
        .arrow {
            left: 30px;
            top: 30px;
        }
        .content {
            position: absolute;
            top: 44px;
            right: -190px;
            font-size: 14px;
            p {
                margin: 16px 20px 15px 20px;
            }
            .scroller {
                height: 200px;
                width: 320px;
                margin: 0 16px 20px 16px;
                overflow: hidden;
                background: url("../../images/danmubg.png");
            }
            .wrapper {
                height: 100%;
                width: 100%;
                display: flex;
            }
            img {
                width: 100%;
                height: 100%;
                margin: 0;
            }
        }
    }
}
.mainBox {
    margin: 0 auto;
    width: 1000px;
}
/* MENU */
.menu {
    display: flex;
    justify-content: space-between;
    padding: 20px 0;
    font-size: 14px;
    .side-line {
        position: absolute;
        top: 8px;
        right: -19px;
        height: 48px;
        border-right: 1px solid rgb(209, 209, 209);
    }

    .menu-left {
        display: flex;
        justify-content: space-around;
        width: 200px;
        position: relative;
        div {
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
        }
        i {
            display: inline-block;
            height: 36px;
            width: 36px;
            line-height: 36px;
            text-align: center;
            color: white;
            font-size: 28px;
            border-radius: 50%;
            &.bili-icon_fenqudaohang_shouye {
                background: #ff5c7c;
            }
            &.bili-icon_dingdao_dongtai {
                background: #fcba2a;
            }
            &.bili-icon_fenqudaohang_paihangbang {
                background: #00a1d6;
            }
            &.bili-pindao {
                background: #6dc781;
            }
        }
    }
    .menu-center {
        width: 580px;
        position: relative;
        .side-line {
            right: 20px;
        }
        ul {
            width: 488px;
            margin: 0 auto;
            display: flex;
            li {
                width: 61px;
                height: 34px;
                text-align: center;
                line-height: 34px;
                cursor: pointer;
                transition: color 0.3s;
            }
            li:hover {
                color: #00a1d6;
            }
        }
    }
    .menu-right {
        width: 220px;
        ul {
            display: flex;
            justify-content: flex-start;
            li {
                height: 34px;
                text-align: center;
                line-height: 34px;
                cursor: pointer;
                display: flex;
                align-items: center;
                margin-right: 6px;
            }
        }
        svg {
            height: 24px;
            width: 24px;
            margin-right: 3px;
        }
    }
}
/* HOT */
.hotBox {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 40px;
    // 轮播图区域
    .main-slide {
        margin: 0;
        width: 460px;
        height: 200px;
        overflow: hidden;
        .swiper-slide {
            img {
                width: 100%;
                height: 100%;
            }
        }
        .swiper-pagination {
            box-sizing: border-box;
            padding-right: 10px;
            text-align: right;

            .swiper-pagination-bullet {
                box-sizing: border-box;
                width: 10px;
                height: 10px;
                border: 2px solid transparent;
                background: #fff;
                opacity: 1;
                transition: all 0.2s;

                &:hover {
                    border-color: #fff;
                    background: #00a1d6;
                    transform: scale(1.5);
                }

                &.swiper-pagination-bullet-active {
                    border: none;
                    background: url("../../images/icon_slide_selected.png") no-repeat center center;
                    background-size: 100% 100%;
                    transform: scale(1.8);
                }
            }
        }
    }
    .recommand-box {
        height: 200px;
        width: 530px;
        margin-left: 10px;
        .switch-button {
            display: none;
            color: white;
            background: rgba(0, 0, 0, 0.4);
            border-radius: 4px;
            height: 70px;
            top: 85px;
            &::after {
                position: absolute;
                top: 50%;
                transform: translateY(-13px);
                font-size: 26px;
            }
        }
        &:hover .switch-button {
            display: inline-block;
        }
        .swiper-button-prev {
            left: 0;
            &::after {
                left: 20%;
            }
        }
        .swiper-button-next {
            right: 0;
            &::after {
                right: 20%;
            }
        }
        .swiper-slide {
            width: 100%;
            height: 100%;
            display: flex;
            flex-direction: column;
            justify-content: space-between;
            ul {
                display: flex;
                justify-content: space-between;
                align-items: center;
            }
            li {
                width: 168px;
                height: 95px;
                position: relative;
            }
            img {
                width: 100%;
                height: 100%;
                border-radius: 2px;
                cursor: pointer;
            }
            p {
                position: absolute;
                bottom: 0px;
                left: 0;
                right: 0;
                width: 100%;
                overflow: hidden;
                white-space: nowrap;
                text-overflow: ellipsis;
                color: white;
                padding: 0 8px 4px 8px;
                font-size: 14px;
                background: -webkit-linear-gradient(bottom, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0));
            }
        }
    }
}
/* AD */
.ad-box {
    width: 1000px;
    margin: 0 auto 40px auto;
    .ad-box-top {
        margin-bottom: 16px;
        height: 36px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        > div {
            display: flex;
            align-items: center;
            a {
                font-size: 12px;
                color: grey;
            }
        }
        .ad-slogen {
            display: flex;
            align-items: center;
            font-size: 20px;
        }
        img {
            height: 36px;
            width: 36px;
            margin-right: 6px;
        }
        i {
            color: red;
            margin-left: 20px;
            margin-right: 10px;
        }
        .online-list {
            display: inline-block;
            height: 30px;
            line-height: 30px;
            text-align: center;
            width: 263px;
            background: #f4f4f4;
            font-size: 12px;
            border-radius: 3px;
            &:hover {
                color: #00a1d6;
            }
        }
    }
    .ad-box-bottom {
        display: flex;
        justify-content: space-between;
        > div {
            flex: 0 0 170px;
            height: 170px;
            width: 170px;
            font-size: 12px;
            img {
                cursor: pointer;
                width: 100%;
                height: 96px;
                border-radius: 3px;
            }
            .uper-id {
                height: 20px;
                line-height: 20px;
                margin-top: 16px;
                margin-left: 4px;
                color: grey;
                &:hover {
                    color: #00a1d6;
                }
                i {
                    vertical-align: middle;
                }
            }
            .slide-box {
                position: relative;
                a {
                    display: inline-block;
                }
                .slide {
                    position: absolute;
                    top: 0;
                    left: 0;
                    width: 100%;
                    height: 96px;
                    opacity: 0;
                    z-index: -11;
                    background: url(../../images/beijing.jpg@.webp);
                    .progress {
                        position: absolute;
                        width: 100%;
                        padding: 5px 10px;
                        background: #000;
                        top: 0;
                        left: 0;
                        border-radius: 2px;
                        background-position: 0 0;
                        background-size: 1700px 960px;

                        transition: all 0.3s;
                        span {
                            position: absolute;
                            top: 4px;
                            left: 3%;
                            display: inline-block;
                            width: 94%;
                            height: 2px;
                            border-radius: 3px;
                            background: rgba(255, 255, 255, 0.3);
                        }
                        i {
                            position: absolute;
                            top: 0;
                            left: 0;
                            background: #fff;
                            display: inline-block;
                            height: 2px;
                            width: 0;
                            border-radius: 3px;
                        }
                    }
                }
            }
            .slide-box:hover {
                color: #00a1d6;
                .slide {
                    cursor: pointer;
                    opacity: 1;
                    z-index: 4;
                }
            }
        }
        p {
            width: 170px;
            padding: 4px;
            font-size: 14px;
            overflow: hidden;
            white-space: nowrap;
            text-overflow: ellipsis;
        }
        .ad-picture {
            flex: 0 0 265px;
            width: 256px;
            height: 160px;
            border-radius: 3px;
        }
    }
}
/* 分割线图片 */
.split-line-img {
    width: 1000px;
    position: relative;
    margin-bottom: 46px;
    img {
        width: 100%;
    }
}
.donghua-box {
    display: flex;
    justify-content: space-between;
    margin-bottom: 40px;
    .left {
        width: 710px;
        &-top {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 16px;
            .ad-slogen {
                display: flex;
                align-items: center;
                font-size: 20px;
                img {
                    height: 36px;
                    width: 36px;
                    margin-right: 6px;
                    vertical-align: middle;
                }
            }
            .change-more {
                font-size: 12px;
                i {
                    &.bili-icon_caozuo_huanyihuan {
                        margin-right: 4px;
                    }
                    vertical-align: middle;
                }
                > a {
                    display: inline-block;
                    border: 1px solid #c0c0c0;
                    width: 61px;
                    height: 22px;
                    line-height: 22px;
                    padding-left: 12px;
                    padding-right: 3px;
                    margin-left: 12px;
                    border-radius: 2px;
                    text-align: center;
                }
                > a:first-child {
                    width: 78px;
                    padding-left: 6px;
                    padding-right: 8px;
                }
                > a:hover {
                    background: #f4f4f4;
                    .bili-icon_caozuo_huanyihuan {
                        // display: none;
                        display: inline-block;
                        transform: rotate(180deg);
                        transition: all 0.5s;
                        // rotate: x 90deg;
                        // color: #ff5c7c;
                    }
                }
            }
        }
        &-bottom {
            display: flex;
            flex-wrap: wrap;
            justify-content: space-between;
            > div {
                flex: 0 0 170px;
                height: 170px;
                width: 170px;
                font-size: 12px;
                img {
                    cursor: pointer;
                    width: 100%;
                    height: 96px;
                    border-radius: 3px;
                }
                .uper-id {
                    height: 20px;
                    line-height: 20px;
                    margin-top: 16px;
                    margin-left: 4px;
                    color: grey;
                    &:hover {
                        color: #00a1d6;
                    }
                    i {
                        vertical-align: middle;
                    }
                }
                .slide-box {
                    position: relative;
                    a {
                        display: inline-block;
                    }
                    .slide {
                        position: absolute;
                        top: 0;
                        left: 0;
                        width: 100%;
                        height: 96px;
                        opacity: 0;
                        z-index: -11;
                        background: url(../../images/225865760.png);
                        .progress {
                            position: absolute;
                            width: 100%;
                            padding: 5px 10px;
                            background: #000;
                            top: 0;
                            left: 0;
                            border-radius: 2px;
                            background-position: 0 0;
                            background-size: 1600px 450px;

                            transition: all 0.3s;
                            span {
                                position: absolute;
                                top: 4px;
                                left: 3%;
                                display: inline-block;
                                width: 94%;
                                height: 2px;
                                border-radius: 3px;
                                background: rgba(255, 255, 255, 0.3);
                            }
                            i {
                                position: absolute;
                                top: 0;
                                left: 0;
                                background: #fff;
                                display: inline-block;
                                height: 2px;
                                width: 0;
                                border-radius: 3px;
                            }
                        }
                    }
                }
                .slide-box:hover {
                    color: #00a1d6;
                    .slide {
                        cursor: pointer;
                        opacity: 1;
                        z-index: 4;
                    }
                }
            }
            p {
                width: 170px;
                padding: 4px;
                font-size: 14px;
                overflow: hidden;
                white-space: nowrap;
                text-overflow: ellipsis;
            }
        }
    }
    .right {
        width: 265px;
        &-top {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 16px;
            span {
                font-size: 20px;
            }
            a {
                font-size: 12px;
                display: inline-block;
                border: 1px solid #c0c0c0;
                width: 61px;
                height: 22px;
                line-height: 22px;
                padding-left: 12px;
                padding-right: 3px;
                margin-left: 12px;
                border-radius: 2px;
                text-align: center;
                transition: background-color 0.3s;
                i {
                    vertical-align: middle;
                    line-height: 22px;
                }
            }
            a:hover {
                background: #f4f4f4;
            }
        }
        .rank {
            li {
                height: 20px;
                margin-bottom: 18px;
                display: flex;
                justify-content: space-between;
                &.number1 {
                    height: 63px;
                }
            }
            img {
                cursor: pointer;
                height: 100%;
                width: 112px;
            }
            .number {
                height: 18px;
                width: 18px;
                color: #999;
                line-height: 18px;
                text-align: center;
            }
            .detail {
                font-size: 14px;
                width: 235px;
                display: flex;
                justify-content: space-between;
                p {
                    width: 111px;
                    margin-bottom: 12px;
                }
                .point {
                    font-size: 12px;
                    color: #999;
                    margin: 0;
                }
            }
            .detail:hover {
                color: #00a1d6;
            }
            .title {
                cursor: pointer;
                font-size: 14px;
                width: 235px;
                overflow: hidden;
                text-overflow: ellipsis;
                white-space: nowrap;
            }
            .title:hover {
                color: #00a1d6;
            }
        }
    }
}
.elevator {
    position: fixed;
    left: calc(50% + 506px);
    top: 360px;
    width: 56px;
    border: 1px solid #e7e7e7;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    .ear {
        position: absolute;
        top: -10px;
        left: 3px;
        font-size: 12px;
    }
    ul {
        padding-top: 6px;
        font-size: 12px;
        li {
            cursor: pointer;
            width: 54px;
            height: 24px;
            line-height: 24px;
            text-align: center;
            transition: all 0.3s;
        }
        li:hover {
            background: #00a1d6;
            color: white;
        }
        .back-top {
            cursor: pointer;
            width: 56px;
            height: 32px;
            line-height: 32px;
            text-align: center;
            position: absolute;
            bottom: -32px;
            left: -1px;
            border: 1px solid #e7e7e7;
            border-bottom-left-radius: 10px;
            border-bottom-right-radius: 10px;
            i {
                font-size: 26px;
                color: #999;
            }
        }
    }
}
